<!--[if intval($user.uid)]-->
<script type="text/javascript" src="modules/InnoForum/pnjavascript/wz_tooltip.js"></script>
<!-- Template -->
<div class="grid_23">
  <a href="<!--[pngetbaseurl]-->" >
    <strong><!--[pnml name='_ANDREAS08_HOME']--></strong>
  </a><img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
  <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' ]-->" >
    <strong><!--[pnml name='_INNOFORUM_USER_ViewAllTopic']--></strong>
  </a><img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
  <a href="<!--[pnmodurl modname='InnoForum' func='viewpage' ctrl='listuser']-->" >
    <strong>ประกาศแยกตามสมาชิก</strong>
  </a>
  <hr />
  <!--[include file='user_std_header.htm']-->
</div>
<div class="clear"></div> 
<div class="grid_16 alpha" style="overflow-x:hidden">

<div style="width:100%" class="text-right">

<!--[getuser_has_topic pagelen='50' page=$smarty.get.page arg_type=$smarty.request.type_search arg_uname=$smarty.request.keyword]-->
<TABLE width="100%">
  <TR align="center">
    <TD>หน้าที่ <!--[if $smarty.get.page ]--><!--[$smarty.get.page]--><!--[else]-->1<!--[/if]--> : 
      <!--[section name=foo loop=$totalpage]-->
        <a href="<!--[pnmodurl modname='InnoForum' func='viewpage' type='user' ctrl='listuser' page=$smarty.section.foo.iteration]-->">
        <!--[$smarty.section.foo.iteration]-->
        </a>
          &nbsp;
      <!--[/section]-->
    </TD>
  </TR>
</TABLE>
</div>
<table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;">
  <tr>
    <td align="right">
      <INPUT TYPE="submit" name="ค้นหา" value="ค้นหา">
			<select name="type_search">
        <option value="uda_uname" >ชื่อในเว็บ</option>
        <option value="uname" >ชื่อผู้ใช้งาน</option>
      </select>
      <input type="text" name="keyword"  size="20"  value="<!--[$smarty.request.keyword]-->" />
    </td>
  </tr>
  <tr class="blue_header">
    <td>
      <h1 class="text_hblue">ประกาศแยกตามสมาชิก</h1>
    </td>
  </tr>
  <tr>
    <td>    
<table width="100%" height="auto" cellpadding="0" cellspacing="3" style="background-color:#FFFFFF; border:1px solid #CCCCCC; text-align:left;"> 
  <TR>
    <TH style="border-bottom:1px dashed #CCCCCC"></TH>
    <TH style="border-bottom:1px dashed #CCCCCC">ชื่อผู้ใช้งาน</TH>
    <TH style="border-bottom:1px dashed #CCCCCC">ชื่อในเว็บ</TH>
    <TH align="right" style="border-bottom:1px dashed #CCCCCC">รวมประกาศ</TH>
    <TH align="right" style="border-bottom:1px dashed #CCCCCC">ซื้อขายแล้ว</TH>
    <TH align="center" style="border-bottom:1px dashed #CCCCCC">ข้อมูล</TH>
  </TR>    
  <!--[foreach from=$countArray item=item]-->
  <TR bgcolor="<!--[cycle values="#FFFFFF,#ecf5ff"]-->">
    <TD>
        <!--[get_gid_by_uid uid=$item.uid]-->
        <!--[if $gid eq '2' || $gid eq '6']-->
        <img src="<!--[modulepath]-->/pnimages/rank_1.png" width="16px" height="16px" align="absmiddle"/>
        <!--[elseif $gid eq '5']-->
        <img src="<!--[modulepath]-->/pnimages/rank_2.png" width="16px" height="16px" align="absmiddle"/>
        <!--[else]-->        
        <img src="<!--[modulepath]-->/pnimages/bullet_black.png" width="16px" height="16px" align="absmiddle"/>
        <!--[/if]-->		
    </TD>
    <TD>
        <!--[$item.uname]-->
    </TD>
    <TD>
    	<!--[getuserinfo uid=$item.uid]-->
    </TD>
    <TD align="right"><!--[$item.count_topics]--></TD>
    <TD align="right"><!--[getuser_sale_by_uid uid=$item.uid]--></TD>
    <TD align="center">
			<a target="_blank" href="<!--[pnmodurl modname='Profile' func='view' uname=$item.uname]-->"><img src="<!--[modulepath]-->/pnimages/37.png" width="16px" height="16px" align="absmiddle" alt="ข้อมูลส่วนตัว" title="ดูข้อมูลส่วนตัว"/></a>
      <a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='Topics' user_id=$item.uid]-->"><img src="<!--[modulepath]-->/pnimages/folder_go.png" width="16px" height="16px" align="absmiddle" alt="ประกาศ" title="ดูประกาศทั้งหมด"/></a>
    </TD>
  </TR>
  <!--[/foreach]--> 
</table>
    </td>
  </tr>
</table>
<br />
<div style="width:100%" class="text-right">
<TABLE width="100%">
  <TR align="center">
    <TD>หน้าที่ <!--[if $smarty.get.page ]--><!--[$smarty.get.page]--><!--[else]-->1<!--[/if]--> :  
      <!--[section name=foo loop=$totalpage]-->
        <a href="<!--[pnmodurl modname='InnoForum' func='viewpage' type='user' ctrl='listuser' page=$smarty.section.foo.iteration]-->">
        <!--[$smarty.section.foo.iteration]-->
        </a>
          &nbsp;
      <!--[/section]-->
    </TD>
  </TR>
</TABLE>
</div>
<br />
</div>
<!--[else]-->
<div class="grid_16 alpha" style="overflow-x:hidden">
<fieldset style="background-color:#ffcdcd; border:1px solid #CCCCCC; text-align:center;">
  <h1>
    <img align="absmiddle" src="<!--[modulepath]-->/pnimages/warning.png">&nbsp;ส่วนของสมาชิก<BR>
  </h1>   
		<A HREF="index.php?module=Users&func=loginscreen">กรุณาล็อคอินเข้าสู่ระบบ</A><BR>
		<A HREF="index.php?module=Users&func=register">หรือสมัครสมาชิก</A>
</fieldset>
<br />
</div>
<!--[/if]-->